import request from "@/utils/request";

// 查询师傅入驻列表
export function listWbMasterEnter(query) {
  return request({
    url: "/wb/wbMasterEnter/list",
    method: "get",
    params: query,
  });
}

// 查询师傅入驻详细
export function getWbMasterEnter(id) {
  return request({
    url: "/wb/wbMasterEnter/" + id,
    method: "get",
  });
}

// 新增师傅入驻
export function addWbMasterEnter(data) {
  return request({
    url: "/wb/wbMasterEnter",
    method: "post",
    data: data,
  });
}

// 修改师傅入驻
export function updateWbMasterEnter(data) {
  return request({
    url: "/wb/wbMasterEnter",
    method: "put",
    data: data,
  });
}

// 删除师傅入驻
export function delWbMasterEnter(id) {
  return request({
    url: "/wb/wbMasterEnter/" + id,
    method: "delete",
  });
}

//审核师傅入住

export function auditWbMasterEnter(id) {
  return request({
    url: "/wb/wbMasterEnter/audit/" + id,
    method: "put",
  });
}

/**获取师傅专业技能 */
export function getMasterSkill(params) {
  return request({
    url: "/system/dict/data/type/skill",
    method: "get",
  });
}



export function acquiringMaster(params) {
  return request({
    url: "/wb/wbMasterEnter/acquiringMaster",
    method: "get",
  });
}
